Rehighlight hi-lock patterns after reverting the buffer.
authorJuri Linkov <juri@linkov.net>
Wed, 5 Jun 2024 06:38:39 +0000 (09:38 +0300)
committerJuri Linkov <juri@linkov.net>
Wed, 5 Jun 2024 06:38:39 +0000 (09:38 +0300)
commit870100a8b7172a5845369ec6a2c28c2b06b7eaee
treeb4ef03e291787d6550a48f36e4465d293ed024d8
parenta2b6e18d6006e62525e71639771fb3bbf5e96a6c
Rehighlight hi-lock patterns after reverting the buffer.

* lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): New function.
(hi-lock-mode): Add hi-lock-revert-buffer-rehighlight to
revert-buffer-restore-functions, and remove after mode is disabled.
https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg00044.html
lisp/hi-lock.el